package dao;

import bean.Article;
import bean.User;

import java.sql.SQLException;
import java.util.ArrayList;

public interface AdministratorDao {
    public ArrayList<User> getAllUsers() throws SQLException;/*获取所有用户*/
    public ArrayList<Article> getAllArticles() throws SQLException;/*获取所有博客*/
    public ArrayList<Article> getAllCommand() throws SQLException;/*获取所有推荐*/
    public boolean deleteBlog(int articleId);/*删除指定博客*/
    public boolean updateBlog(Article article);/*编辑博客*/
    public boolean commandBlog(int articleId);/*推荐博客*/
    public boolean deleteCommand(int articleId);/*取消推荐*/
    public boolean deleteUser(String account);/*删除用户*/
    public boolean updateUser(User user);/*修改用户*/
    public boolean checkBlog(int articleId);/*审核博客*/
}
